<?php
/**
 * Core_Data_Mailsender
 * send e-mail
 * @author Adrian Stolarski
 */
class Core_Data_Mailsender implements Core_Data_Mainable {
    
    /**
     * main()
     * send email
     * 
     * @param array $variables
     */
    public function main(array $variables = null) {
        $email = $variables['user_email'];
	$message = $variables['user_message'];
	$subject = $variables['user_subjet'];

	$headers2 = "From: $webmaster\r\n";
	$headers2 .= "Content-type:  text/html\r\n";
	mail($email, $subject, $message, $headers2);
    }

}
